<?php /** @noinspection ALL */

/**
 * @link https://gitee.com/toshcn/micro-hau
 * @copyright Copyright (c) 2022/4/20 micro-hau
 * @author toshcn <toshcn@foxmail.com>
 */

namespace api\modules\v1\controllers;

use api\controllers\ApiController;

/**
 * 用户接口控制器
 * Class UserController
 * @package api\modules\v1\controllers
 */
class UserController extends ApiController
{
    /**
     * @return mixed
     */
    public function actionIndex()
    {
        return \Yii::$app->api->success(['id' => 1, 'nickname' => '测试用户']);
    }
}